﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data;
namespace GUI
{
    public class GUI
    {
        public static Form KiemTraTonTai (Type formType, Form form)
        {
            foreach (Form f in form.MdiChildren)
            {
                if (f.GetType() == formType)
                    return f;
            }
            return null;
        }
        public static DataTable DataMenhGia()
        {
            DataTable dt = new DataTable();
            dt.Columns.Add("text");
            dt.Columns.Add("value");
            dt.Rows.Add("50", "1");
            dt.Rows.Add("100", "2");
            dt.Rows.Add("200", "3");
            dt.Rows.Add("500", "4");
            return dt;
        }
    }
}
